export default {
    data() {
        return {
            title: '网站标题2'
        }
    },
    methods: {
        loginConfirm() {
            if (!this.$store.getters.token) {
                this.$dialog
                    .confirm({
                        title: "温馨提示",
                        message: "您尚未登录",
                        cancelButtonText: "再看看",
                        confirmButtonText: "去登陆",
                    })
                    .then(() => {
                        this.$router.replace({
                            path: "/login",
                            query: {
                                backurl: this.$route.fullPath,
                            },
                        });
                    })
                    .catch(() => { });
                return true;
            } else {
                return false;
            }
        }
    }
}